package com.zhb.designmode.creationmode.factory.easyfactory;

import com.zhb.designmode.creationmode.factory.easyfactory.fatory.CarFactory;
import com.zhb.designmode.creationmode.factory.easyfactory.product.Car;

import java.util.HashMap;

public class Client {
    public static void main(String[] args) {
        //找工厂拿车
        Car car = CarFactory.getCar("宝马");
        System.out.println(car.getName());
    }
}
